home *** CD-ROM | disk | FTP | other *** search
- rem fitting with a polynom and extracting fitting coefficients:
- calc Xo = 10*[cm]
- calc x = {-0.4*[m]+Xo,0.4*[m]+Xo,1*[cm]}
- calc y = (3*[g/m]*(x-Xo)^2+2*(x-Xo)*[g]-1*[g*m])/[cm]
- @echo off
- rem this function returns fitting coefficients
- rem rather than fitted function values:
- calc coefs = Fitc(y,p(2))
- @pause
- rem calc fitted(coefs,x)
- rem @pause
- calc max(fitted(coefs,x)-y)
- calc An(coefs,2)
- calc An(coefs,1)
- calc An(coefs,0)
- calc Xo(coefs)
-